﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Remoting;
using System.Text;
using System.Threading.Tasks;

namespace reminder_csh
{
    public class Worker
    {
        public int Id { get; set; }
        [Required]
        public string Name { get; set; }
        public string Email { get; set; }
        public string PicturePath { get; set; }
        public virtual ICollection<Task> Tasks { get; set; }

        public override string ToString()
        {
            return string.Format(Name);
        }
    }

}

